package com.yswy.common.enums;



import java.util.Map;

public enum AccountTypeEnums implements TypeEnum{
	QQ(0, "请输入QQ号"),//app
	PHONE(1, "请输入手机号");//手机网站

	AccountTypeEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;

    private final String message;

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public static String getMessageByCode(Integer code) {
        if (code == QQ.getCode()){
            return QQ.getMessage();
        }else if (code == PHONE.getCode()){
            return PHONE.getMessage();
        }else {
            return null;
        }

    }
    
    public static Map<Integer,String> kv = EnumHelper.getCtx(values());
    

}
